package com.zhao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 统计表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Statistic {
    @TableId(type = IdType.AUTO)
    private Integer id;                 //统计id
    private Integer articleId;         //文章id
    private Integer hits;               //文章点击量
    private Integer commentsNum;       //文章评论量
    private Integer zan;                //文章点赞量
    private String top;                //置顶 1是 0否
    private Integer collection;
    @TableField(exist = false)
    private Integer articlenum; //文章数
    @TableLogic //逻辑删除注解
    private Integer deleted;
}
